import { Tab } from '@/components/SwitchTabs/index.vue'

export const getTabs = (): Tab[] => {
  return [
    {
      name: '对话案例',
      key: '/admin/learning-case-manage/dialog-list',
      auth: 'case-dialog-list'
    },
    {
      name: '绘图案例',
      key: '/admin/learning-case-manage/draw-list',
      auth: 'case-draw-list'
    }
  ]
}

import img1 from '@/assets/img/admin/learning-case/case1.png'
import img2 from '@/assets/img/admin/learning-case/case2.png'
import img3 from '@/assets/img/admin/learning-case/case3.png'
import img4 from '@/assets/img/admin/learning-case/case4.png'
import img5 from '@/assets/img/admin/learning-case/case5.png'

const imgList = [img1, img2, img3, img4, img5]

export const getRoleImgPath = (id: number) => {
  console.log('id：', id)

  return imgList[id - 1]
}
